﻿using System;
using RapidCMS.Core.Models.Config;

namespace RapidCMS.Core.Models.Config
{
    internal class CustomButtonConfig : ButtonConfig
    {
        internal CustomButtonConfig(Type customButtonType, Type actionHandler)
        {
            CustomType = customButtonType ?? throw new ArgumentNullException(nameof(customButtonType));
            ActionHandler = actionHandler ?? throw new ArgumentNullException(nameof(actionHandler));
        }

        internal Type CustomType { get; set; }
        internal Type ActionHandler { get; set; }
    }
}
